package com.love.netty.core.interfaces.impl;

import com.love.netty.core.interfaces.ConsoleCommand;
import com.love.netty.core.packet.request.LogoutRequestPacket;
import io.netty.channel.Channel;

import java.util.Scanner;

/**
 * @ClassName: LogoutConsoleCommand
 * @Description:
 * @Author: wuj
 * @Date: 2021-06-25 11:02
 **/
public class LogoutConsoleCommand implements ConsoleCommand {
    @Override
    public void exec(Scanner scanner, Channel channel) {
        LogoutRequestPacket logoutRequestPacket = new LogoutRequestPacket();
        channel.writeAndFlush(logoutRequestPacket);
    }
}
